///*
// * To change this template, choose Tools | Templates
// * and open the template in the editor.
// */
//package org.turistmontoro;
//
//import org.quartz.JobBuilder;
//import org.quartz.JobDetail;
//import org.quartz.Scheduler;
//import org.quartz.SchedulerFactory;
//import org.quartz.SimpleScheduleBuilder;
//import org.quartz.Trigger;
//import org.quartz.TriggerBuilder;
//import org.quartz.impl.StdSchedulerFactory;
//
///**
// *
// * @author ajdiaz
// */
//public class SimpleTrigger {
//
//    public static void main(String[] args) throws Exception {
//
//        System.out.println("En la clase triguer");
//     
//
//        // define the job and tie it to our HelloJob class
//        JobDetail job = JobBuilder.newJob(Consultas.class)
//                .withIdentity("job1", "group1").build();
//
//
//        // Trigger the job to run on the next round minute
//        Trigger trigger = TriggerBuilder
//                .newTrigger()
//                .withIdentity("myTrigger", "group1")
//                .withSchedule(
//                SimpleScheduleBuilder.simpleSchedule()
//                .withIntervalInSeconds(5).repeatForever())
//                .build();
//
//        // Tell quartz to schedule the job using our trigger
//        SchedulerFactory schedFact = new StdSchedulerFactory();
//
//        Scheduler sched = schedFact.getScheduler();
//
//        sched.start();
//        sched.scheduleJob(job, trigger);
//
//           System.out.println("Saliendo de triger....");
//
//    }
//}
